package com.yiba.vpn.config;

/**
 * 自定义请求状态码
 * @author ScienJus
 * @date 2015/7/15.
 */
public enum ResultStatus {
    SUCCESS(200, "成功"),
    USERNAME_OR_PASSWORD_ERROR(-1001, "用户名或密码错误"),
    USER_NOT_FOUND(-1002, "用户不存在"),
    USER_NOT_LOGIN(-1003, "用户未登录"),
    NO_RESOURCE(404, "RESOURCE NOT FOUND"),
    NO_ALLOWED(425,"请求不被允许"),
	INTERNAL_SERVER_ERROR(500,"服务器异常"),
    HOST_SERVER_ERROR(501,"提供的节点服务信息不能正常使用！请校验参数！"),
    BUY_SERVER_NOT_CAST(-1004, "该用户没有可使用服务套餐！"),
    SERVER_IS_EXPIRED(-1005, "用户套餐过期！"),
    ERROR_ADD_NODE_SERVER_REQUEST(-1005, "创建节点信息异常异常"),
    NODE_SERVER_NOT_CAST(-1006, "创建节点信息异常异常"),
    ORDER_ALREADY_CREATE(-1010,"当前订单已经创建"),
    REQUEST_PARAMS_ERROR(400, "请求参数异常"),
    REQUEST_CODE_VERIFY_ERROR(400, "验证码错误;"),
    REQUEST_AGAIN_ERROR(444, "重复请求"),
    TOKEN_ERROR(401, "token验证失败"),
    CODE_EXPIRED(4004, "code失效"),
    CODE_ERROR(4001, "code错误"),
    OTHER_DEVICE_LOGION(402,"您的账户已在其他设备登录"),
    PAY_PARAMS_ERROR(405,"付款金额错误"),
    NO_SETMEL_AVIABLE(505,"没有可用套餐"),
    NO_REFRESH_TOKEN(4014,"刷新token不正确"),
    
   
	NOT_WALLET(801,"钱包无效"),
	WALLET_HAD_EXIST(802,"钱包已存在"),
	 NOT_PHONE(803,"手机号码无效"),
	 SEND_NOTE_FAIL(804,"短信发送失败"),
	 ROUTER_NUM_FULL(805,"路由器预约达上限");
	



    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
